#ifndef TRACKWELDENDINSTRUCTIONVIEW_H
#define TRACKWELDENDINSTRUCTIONVIEW_H

#include <QWidget>
#include <../ProgramSet/trackweldendinstruction.h>


namespace Ui {
class TrackWeldEndInstructionView;
}

class TrackWeldEndInstructionView : public QWidget
{
    Q_OBJECT

public:
    explicit TrackWeldEndInstructionView(QWidget *parent = 0);
    ~TrackWeldEndInstructionView();


public:
    /**
     * @brief getInput             获取界面输入
     */
    void getInput(TrackWeldEndInstruction &instructionParaOut);

    /**
     * @brief updateView            根据instructionPara更新数据显示在界面
     */
    void updateView();

    /**
     * @brief changeLanguage      界面语言切换
     * @param language
     */
    void changeLanguage(int language);
private:
    void finishEditInstruction(TrackWeldEndInstruction instructionParaIn,QString &instructionStrOut);

private slots:
    void on_clearNote_Btn_clicked();

    void on_save_Btn_clicked();

signals:
    /**
     * @brief cleanNoteStrSignal             删除注释信号
     */
    void cleanNoteStrSignal();

    /**
     * @brief finishEditInstruction         指令属性编辑完成
     */
    void finishEditInstructionSignal();

    /**
     * @brief saveInstructionSignal         保存指令
     * @param instructionStr                指令字符串
     */
    void saveInstructionSignal(const QString& instructionStr);
public:
        QString instructionStr;
        TrackWeldEndInstruction instructionPara;

private:
    Ui::TrackWeldEndInstructionView *ui;
};

#endif // TRACKWELDENDINSTRUCTIONVIEW_H
